<?php
class PublicdetailController extends Zend_Controller_Action
{
	protected $ClsPublic ;
	protected  $TblUserbyId; // field: Id,User,Pass,Email,FullName,Address,Phone,Fax,TruonghocId,Kichhoat,Phuluc from $this->NameTblAdmin
	public function initValue()
	{
		$this->ClsPublic = new Model_Publicdetail();
		$Info = Zend_Auth::getInstance ()->getStorage ()->read ();
		$this->IdUser = $Info->id;
		if($this->IdUser==null)
		{
			$auth = Zend_Auth::getInstance();
			if (!$auth->hasIdentity()) {
				if ($this->_request->getActionName() != 'login') {
					$this->_redirect('/index/login');
				} }
		}
		$this->ClsPublic->GetIdUser($this->IdUser);
		$this->setfortblAction();
		
		
		
	}
	public function indexAction()
	{
		//$this->ClsModel_Public->
	
	}
	protected function setfortblAction()
	{
		$this->TblUserbyId = $this->ClsPublic->ReturnTblAdminbyId();
		
		
	}
	
}